package com.aca.market.service;

import com.aca.market.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aca
 * @since 2020-11-13
 */
public interface IPermissionService extends IService<Permission> {
    // 1 用role_id去拿role_perm的perm_id集合，用每个perm_id集合去perm里拿权限
    List<String> getPerms(Long roleId);

    List<Permission> getPermsEntity(Long roleId);

    List<Long> getPermsId(Long roleId);

    List<String> getUserRoles(Long userId);

    List<String> getUserRoles(List<String> perms);

    boolean hasPermToDashBoard();
}
